import React,{Component} from "react";
import {connect} from "react-redux"

import {getUserList} from '../../redux/actions'
import UserList from "../../components/userlist/userlist";
class Laoban extends Component{
    componentDidMount() {
        //发送请求获取数据
        this.props.getUserList("大神")
    }
    render() {
        return(
           <UserList userlist = {this.props.userlist}></UserList>
        )
    }
}
export default connect(
    state=>state,
    {getUserList}
)(Laoban)